<script setup lang="ts">
import { ref } from 'vue'
import Dict from './dict.vue'
import DictItem from './dict-item.vue'

const dictCode = ref<string>("")

function changeDictCode(code: string) {
    dictCode.value = code
}

</script>

<template>
    <div id="flame-container">
        <div style="position:absolute;top:0;bottom:0;left:0;right:50%;">
            <dict @update:dictCode="changeDictCode" />
        </div>
        <div style="position:absolute;top:0;bottom:0;left:50%;right:0;">
            <dict-item :dictCode="dictCode" />
        </div>
    </div>
</template>

<style scoped></style>
